home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000270_not-a-real-address@usa.net_Fri Apr 30 16:41:09 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!feed1.nycmny01.us.to.verio.net!nntp2.tagonline.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.mathworks.com!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!news.supernews.com!not-for-mail
  2. From: those who know me have no need of my name <not-a-real-address@usa.net>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Strange error happens when building G-Kermit on a Slackware 9.1
  5.  box
  6. Date: 30 Apr 2004 08:12:09 GMT
  7. Organization: earthfriends
  8. Message-ID: <m1isfhaobw.gnus@usa.net>
  9. References: <o30kc.62819$um3.1202849@bgtnsc04-news.ops.worldnet.att.net> <slrnc92ask.4nt.fdc@sesame.cc.columbia.edu>
  10. User-Agent: Gnus/5.110002 (No Gnus v0.2) XEmacs/21.4 (Rational FORTRAN,
  11.  linux)
  12. MIME-Version: 1.0
  13. Content-Type: text/plain; charset=us-ascii
  14. X-Complaints-To: abuse@supernews.com
  15. Lines: 36
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14989
  17.  
  18. in comp.protocols.kermit.misc i read:
  19.  
  20. >Evidently it is newly necessary to replace:
  21. >
  22. >  extern int errno;
  23. >
  24. >with:
  25. >
  26. >  #include <errno.h>
  27.  
  28. that's been formally necessary since c was standardized, or perhaps more
  29. pragmatically when using a c89/c90 or c99 conforming implementation ...
  30.  
  31. ,----
  32. |          errno
  33. | which expands to a modifiable lvalue that has type int , the value
  34. | of which is set to a positive error number by several library
  35. | functions.  It is unspecified whether errno is a macro or an
  36. | identifier declared with external linkage.  If a macro definition is
  37. | suppressed in order to access an actual object, or a program defines
  38. | an external identifier with the name errno , the behavior is
  39. | undefined.
  40. `----
  41.  
  42. >This is apparently part of the trend to convert errno from an
  43. >ordinary scalar variable to some kind of a per-thread object.
  44.  
  45. yes.  the intersection of c and various threading standards tends to demand
  46. that errno be thread-specific and i'm not aware of any implementations that
  47. do so with some form of behind-the-scenes magic for the object, all seem to
  48. use a macro that expands to, essentially, (*__errno()) which dereferences a
  49. pointer to the thread specific object.
  50.  
  51. -- 
  52. a signature